﻿using HitMapsNew.App_Start;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Data.Entity;
using BL;

namespace HitMapsNew.Controllers
{
    public class DataController : Controller
    {

        public ActionResult GetMenus()
        {
            List<BL.MenuItem> menuItems = null;
            var context = new BL.Context();
            menuItems = MenuItem.GetMainMenus(context);

            return new JsonNetResult() { Data = menuItems };
        }


    }
}
